using UnityEngine;
using System.Collections;

public class DifficultyOption : MonoBehaviour {
	
	public GUISkin skin;
    public static string pName = ".......";
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI()
    {
		GUI.skin = skin;

        GUI.Label(new Rect(300, 425, Screen.width - 600, 20), "Please Enter name");
        pName = GUI.TextField(new Rect(300, 445, Screen.width - 600, 20), pName, 25);

        GUI.BeginGroup(new Rect(Screen.width / 2 - 200, Screen.height / 2 - 200, 400, 400));
		GUI.Box(new Rect(0, 0, 400, 400), "Difficulty");
		if(GUI.Button(new Rect(10, 50, 100, 30), "Easy"))
		{
			Application.LoadLevel("GameLevelEasy");
		}
		if(GUI.Button(new Rect(10, 100, 100, 30), "Medium"))
		{
			Application.LoadLevel("GameLevelMid");
		}
		if(GUI.Button(new Rect(10, 150, 100, 30), "Hard"))
		{
			Application.LoadLevel("GameLevelHard");
		}
		GUI.EndGroup();
	}
}
